﻿@model TelerikConnect.Web.ViewModels.MessageSendViewModel

<script src="~/Scripts/jquery-1.8.2.min.js"></script>
<script src="~/Scripts/jquery.validate.min.js"></script>
<script src="~/Scripts/jquery.validate.unobtrusive.min.js"></script>
<link href="~/Content/Site.css" rel="stylesheet" />

@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    @Html.ValidationSummary(true)

    <h3>@ViewBag.Message</h3>
    <div class="editor-label">
        @Html.LabelFor(model => model.RecieverUserName)
    </div>
    <div class="editor-field">
        <input class="text-box single-line" id="RecieverUserName" name="RecieverUserName" type="text" value="">
        @Html.ValidationMessageFor(model => model.RecieverUserName)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Title)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Title)
        @Html.ValidationMessageFor(model => model.Title)
    </div>

    <div class="editor-label">
        @Html.LabelFor(model => model.Content)
    </div>
    <div class="editor-field">
        @Html.EditorFor(model => model.Content)
        @Html.ValidationMessageFor(model => model.Content)
    </div>

    <p>
        <input type="submit" value="Send" />
    </p>
}